/**
 * @param {character[]} chars
 * @return {number}
 */
var compress = function (chars) {
  let map = new Map()
  let template = []
  for(const c of chars){
    map.set(c,map.get(c)+1 || 1)
  }

  
};